package com.csu.tour.controller;

import com.csu.tour.entity.HotelMarket;
import com.csu.tour.service.NonstarMarketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;



@RestController
public class NonstarMarketController {

    @Autowired
    private NonstarMarketService nonstarMarketService;

    @PostMapping("/nonstarMarkets")
    public void addNonstarMarket(@RequestBody HotelMarket nonstarMarket) {
        nonstarMarketService.addNonstarMarket(nonstarMarket);
    }
}